package day03;

public class OperDemo {
    public static void main(String[] args) {
        int a = 5,b =5;
        a++;
        ++b;
//        System.out.println(a);
//        System.out.println(b);
        int c = a++;
        int d = ++b;
//        System.out.println(c);
//        System.out.println(d);
//        System.out.println(c++ > 6);
//        System.out.println(c++ > 6);
        System.out.println(a);
        System.out.println(b);
        System.out.println(a++ > 7 && b++ > 7);
        System.out.println(a++ > 8 & b++ > 8);
        System.out.println(a);
        System.out.println(b);
        a %= 2;
        System.out.println(a);
        short s = 5;
        //s = s + 5;这句话会报错
        s += 5;//这句话不会报错，对比上面一句话
        System.out.println(s);

    }
}

